package com.wangjie.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-weather", url = "https://restapi.amap.com")
public interface WeatherFeignClient {
    // 高德开放平台天气查询
    @GetMapping("/v3/weather/weatherInfo")
    String getWeatherInfo(@RequestParam("key") String key, @RequestParam("city") String city);
}
